import axios from '@/libs/api.request'

export const list = (paras) => {
  return axios.request({
    url: '/admin/student/list',
    params: paras,
    method: 'get'
  })
}

export const queryTeacherPublishTask = (paras) => {
  return axios.request({
    url: '/admin/student/queryTeacherPublishTask',
    params: paras,
    method: 'get'
  })
}

export const StudentActivateAll = (paras) => {
  return axios.request({
    url: '/admin/student/StudentActivateAll',
    params: paras,
    method: 'get'
  })
}
export const save = (data) => {
  return axios.request({
    url: '/admin/student/save',
    data,
    method: 'post'
  })
}

export const update = (data) => {
  return axios.request({
    url: '/admin/student/update',
    data,
    method: 'post'
  })
}

export const del = (data) => {
  return axios.request({
    url: '/admin/student/delete',
    data,
    method: 'post'
  })
}

export const batchDelete = (data) => {
  return axios.request({
    url: '/admin/student/batchDelete',
    data,
    method: 'post'
  })
}

export const fill = (data) => {
  return axios.request({
    url: '/admin/student/fill',
    data,
    method: 'post'
  })
}
export const updateStatus = (data) => {
  return axios.request({
    url: '/admin/student/updateStatus',
    data,
    method: 'post'
  })
}

export const saveInfo = (data) => {
  return axios.request({
    url: '/admin/student/saveInfo',
    data,
    method: 'post'
  })
}

export const userInfoLogind = (data) => {
  return axios.request({
    url: '/admin/student/userInfoLogind',
    data,
    method: 'post'
  })
}

export const userInfoLogindByActivated = (data) => {
  return axios.request({
    url: '/admin/student/userInfoLogindByActivated',
    data,
    method: 'post'
  })
}

export const userInfoVerifyRepetition = (data) => {
  return axios.request({
    url: '/admin/student/userInfoVerifyRepetition',
    data,
    method: 'post'
  })
}